package com.qft.u_app;

import android.app.Application;

import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;

/**
 * Created by doudo on 2019/6/11.
 * Date: 2019-06-11 11:23
 */
public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        /**
         * 设置组件化的Log开关
         * 参数: boolean 默认为false，如需查看LOG设置为true
         */
        UMConfigure.setLogEnabled(true);
        UMConfigure.init(this,"5cfe28124ca357427b000271"
                ,"oppo",UMConfigure.DEVICE_TYPE_PHONE,"");//58edcfeb310c93091c000be2 5965ee00734be40b580001a0

        MobclickAgent.setScenarioType(getApplicationContext(), MobclickAgent.EScenarioType.E_UM_NORMAL);
        // 将默认Session间隔时长改为40秒。
        MobclickAgent.setSessionContinueMillis(1000*40);
        // isEnable: false-关闭错误统计功能；true-打开错误统计功能（默认打开）
       // MobclickAgent.setCatchUncaughtExceptions(true);
    }


}
